package com.fgba.express.data.search;

import com.fgba.express.comm.enums.MenuType;
import com.fgba.express.comm.enums.State;
import com.fgba.express.core.search.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单查询
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "MenuSearch对象", description = "菜单查询")
public class MenuSearch extends BaseSearch {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父菜单ID，一级菜单为0")
    private Integer parentId;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单URL")
    private String path;

    @ApiModelProperty(value = "授权(多个用逗号分隔，如：user:list,user:create)")
    private String perms;

    @ApiModelProperty(value = "菜单组件名称")
    private String component;

    @ApiModelProperty(value = "类型     0：目录   1：菜单   2：按钮")
    private MenuType type;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;

    /**
     * 状态，0为删除，1为正常，2为禁用
     */
    @ApiModelProperty(value = "状态")
    private State state;
}
